package com.csun.cmny.config.properties;

import lombok.Data;

/**
 * @Auther: chisj chisj@foxmal.com
 * @Date: 2019-02-19 09:34
 * @Description: the class netty properties
 */
@Data
public class NettyProperties {

    private PhoneProperties phone = new PhoneProperties();

    private WatchProperties watch = new WatchProperties();

    private CameraProperties camera = new CameraProperties();

    private RelayProperties relay = new RelayProperties();

    private PatrolProperties patrol = new PatrolProperties();

    private CardProperties card = new CardProperties();

    @Data
    public class CameraProperties {

        /**
         * ip
         */
        private String host;

        /**
         * 端口
         */
        private int port;

        /**
         * 拍照url
         */
        private String pictureUrl;

        /**
         * rmtp推流url
         */
        private String rtmpUrl;

        /**
         * 查询版本url
         */
        private String queryVersion;

        /**
         * 下载版本url
         */
        private String downVersion;

        /**
         * 显示图片url
         */
        private String pictureShow;

        /**
         * webrtc服务器地址
         */
        private String webrtcHost;
    }

    @Data
    public class PhoneProperties {

        /**
         * 端口
         */
        private int port;
    }

    @Data
    public class WatchProperties {

        /**
         * 端口
         */
        private int port;
    }

    @Data
    public class RelayProperties {

        /**
         * 端口
         */
        private int port;
    }

    @Data
    public class PatrolProperties {

        /**
         * 端口
         */
        private int port;
    }

    @Data
    public class CardProperties {

        /**
         * 端口
         */
        private int port;
    }
}
